package com.mico.example.springboot.exception.handler.handler;

import lombok.Data;
import org.springframework.http.HttpStatus;

/**
 * 返回体
 */
@Data
public class ExceptionBody {
    /**
     * 响应代码
     */
    private Integer code;

    /**
     * 响应消息
     */
    private String message;

    /**
     * 响应结果
     */
    private Object result;



    public ExceptionBody(Object result) {
        this.code = HttpStatus.INTERNAL_SERVER_ERROR.value();
        this.message = HttpStatus.INTERNAL_SERVER_ERROR.getReasonPhrase();
        this.result = result;
    }

}
